package tech.xs.workflow.service;

import tech.xs.common.framework.service.CrudService;
import tech.xs.workflow.bpmn.element.ProcessElement;
import tech.xs.workflow.domain.entity.BpmnEvent;
import tech.xs.workflow.domain.entity.BpmnProcess;
import tech.xs.workflow.domain.entity.WorkflowWork;

public interface BpmnEventService extends CrudService<BpmnEvent> {

    void importEvent(BpmnProcess process, ProcessElement processElement);

    boolean execute(WorkflowWork work, BpmnEvent event);

}
